package com.example.springbootws.service;

import com.example.springbootws.domain.SapStock;
import org.springframework.stereotype.Service;

import javax.jws.WebService;

/**
 * @program: springboot-ws
 * @description:
 * @author: ruge.wu
 * @create: 2021-09-17 08:58
 **/
@WebService(serviceName = "sapService",//对外发布的服务名
        targetNamespace = "http://www.bjev.com.cn/app",//指定你想要的名称空间，通常使用使用包名反转
        endpointInterface = "com.example.springbootws.service.UserService")
@Service
public class UserServiceImpl implements UserService {
    @Override
    public SapStock syncStock(SapStock user) {
        System.out.println("保存用户：" + user);
        return user;
    }
}
